package com.aidong.video.entity;

import java.io.Serializable;
import java.text.DecimalFormat;

import com.aidong.util.ReadPropertiesUtil;

public class VideoContent implements Serializable/*,Comparable<VideoContent>*/ {

	/**
	 * 
	 */
	private static final long serialVersionUID = -7076469658465454260L;
	
	private int vId;
	private String cover;//: "视频封面",
    private String video;//: "视频地址",
    private int phase;//: 视频期数,
    private String videoName;//:视频名称
    private String author;//: "作者",
    private String during;//: "视频时长",
    private String introduce;//: "视频介绍",
    private int likesCount;//: "赞的数量",
    private int commentsCount;//: "评论数量" 
    private int contentId;//视频ID
	public int getvId() {
		return vId;
	}
	public void setvId(int vId) {
		this.vId = vId;
	}
	public String getCover() {
		return ReadPropertiesUtil.getVideoCover(cover);
	}
	public void setCover(String cover) {
		this.cover = cover;
	}
	public String getVideo() {
		return ReadPropertiesUtil.getVideo(video);
	}
	public void setVideo(String video) {
		this.video = video;
	}
	public int getPhase() {
		return phase;
	}
	public void setPhase(int phase) {
		this.phase = phase;
	}
	public String getVideoName() {
		return videoName;
	}
	public void setVideoName(String videoName) {
		this.videoName = videoName;
	}
	public String getAuthor() {
		return author;
	}
	public void setAuthor(String author) {
		this.author = author;
	}
	public String getDuring() {
		return during;
	}
	public void setDuring(String during) {
		this.during = during;
	}
	public String getIntroduce() {
		return introduce;
	}
	public void setIntroduce(String introduce) {
		this.introduce = introduce;
	}
	public int getLikesCount() {
		return likesCount;
	}
	public void setLikesCount(int likesCount) {
		this.likesCount = likesCount;
	}
	public int getCommentsCount() {
		return commentsCount;
	}
	public void setCommentsCount(int commentsCount) {
		this.commentsCount = commentsCount;
	}
	public int getContentId() {
		return contentId;
	}
	public void setContentId(int contentId) {
		this.contentId = contentId;
	}
	/*public int compareTo(VideoContent other) {
		if (other == null)
            return 1;
        int value = this.vId - other.vId;
        if (value == 0)
            value = this.phase - other.phase;
        return value;
	}*/
}
